﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Sotipha.Web.Views.Home
{
    public partial class ucNewArrival : System.Web.UI.UserControl
    {
        public string ProductType = "-1";
        CFeatureProctuct CFeature = new CFeatureProctuct();
        protected void Page_Load(object sender, EventArgs e)
        {
            int GroupID = -1;
            if (Request.QueryString["GroupID"] != null)
                int.TryParse(Request.QueryString["GroupID"].ToString(), out GroupID);

            if (Session["lang"].ToString() == "vi") {
                ltrArrival.Text = "Sản phẩm mới";
            }
            ltrProduct.Text = CFeature.GetProductArrival(ProductType, GroupID, "Towntalk");
        }
    }
}